package vip.xiaonuo.device.modular.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import vip.xiaonuo.device.modular.entity.BizGoods;
import vip.xiaonuo.device.modular.entity.BizGoodsCheck;
import vip.xiaonuo.device.vo.CabinetScreenGoodsPageVO;
import vip.xiaonuo.device.vo.CabinetScreenGoodsVO;
import vip.xiaonuo.device.vo.ReagentWeighVO;

import java.util.List;

/**
 * @author 墨塵
 * @since 2023/1/5
 */
@Repository
public interface GoodsMapper extends BaseMapper<BizGoods> {

    Page<CabinetScreenGoodsPageVO> getPageList(Page page, @Param("cabinetDoorId") String cabinetDoorId);

    CabinetScreenGoodsVO getInfoByID(@Param("goodsId") String goodsId, @Param("cabinetDoorId") String cabinetDoorId);

    List<BizGoodsCheck> getBorCheckList(@Param("goodsId") String goodsId);

    List<BizGoodsCheck> getRetCheckList(@Param("goodsId") String goodsId);

    ReagentWeighVO getReagentByRfid(@Param("rfid") String reagentRfid);

    BizGoods getInfoByRfid(@Param("rfid") String reagentRfid);
}
